package com.chenjie.executor.day20;


/**
 *
 *
 * @author chenjie
 * @version JDK 8
 * @className Main1 (此处以class为例)
 * @date 2024/5/27
 * @description TODO
 */
public class Main {

    /**
     *
     * @param args
     */
    public static void main(String[] args) {

        Data data=new Data();
        Producter producter=new Producter(data);
        Consumer consumer=new Consumer(data);
        Thread thread=new Thread(producter,"thread");
        Thread thread1=new Thread(consumer,"thread1");
        thread.start();
        thread1.start();
        System.out.println("人人都是程序员");

    }
}
